﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000075 RID: 117
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AGLGJPAMJEP : IMessage<AGLGJPAMJEP>, IMessage, IEquatable<AGLGJPAMJEP>, IDeepCloneable<AGLGJPAMJEP>, IBufferMessage
	{
		// Token: 0x17000175 RID: 373
		// (get) Token: 0x0600052C RID: 1324 RVA: 0x0000F985 File Offset: 0x0000DB85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AGLGJPAMJEP> Parser
		{
			get
			{
				return AGLGJPAMJEP._parser;
			}
		}

		// Token: 0x17000176 RID: 374
		// (get) Token: 0x0600052D RID: 1325 RVA: 0x0000F98C File Offset: 0x0000DB8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AGLGJPAMJEPReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000177 RID: 375
		// (get) Token: 0x0600052E RID: 1326 RVA: 0x0000F99E File Offset: 0x0000DB9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AGLGJPAMJEP.Descriptor;
			}
		}

		// Token: 0x0600052F RID: 1327 RVA: 0x0000F9A5 File Offset: 0x0000DBA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AGLGJPAMJEP()
		{
		}

		// Token: 0x06000530 RID: 1328 RVA: 0x0000F9AD File Offset: 0x0000DBAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AGLGJPAMJEP(AGLGJPAMJEP other) : this()
		{
			this.avatarType_ = other.avatarType_;
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000531 RID: 1329 RVA: 0x0000F9DE File Offset: 0x0000DBDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AGLGJPAMJEP Clone()
		{
			return new AGLGJPAMJEP(this);
		}

		// Token: 0x17000178 RID: 376
		// (get) Token: 0x06000532 RID: 1330 RVA: 0x0000F9E6 File Offset: 0x0000DBE6
		// (set) Token: 0x06000533 RID: 1331 RVA: 0x0000F9EE File Offset: 0x0000DBEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x17000179 RID: 377
		// (get) Token: 0x06000534 RID: 1332 RVA: 0x0000F9F7 File Offset: 0x0000DBF7
		// (set) Token: 0x06000535 RID: 1333 RVA: 0x0000F9FF File Offset: 0x0000DBFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x06000536 RID: 1334 RVA: 0x0000FA08 File Offset: 0x0000DC08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AGLGJPAMJEP);
		}

		// Token: 0x06000537 RID: 1335 RVA: 0x0000FA16 File Offset: 0x0000DC16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AGLGJPAMJEP other)
		{
			return other != null && (other == this || (this.AvatarType == other.AvatarType && this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000538 RID: 1336 RVA: 0x0000FA54 File Offset: 0x0000DC54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000539 RID: 1337 RVA: 0x0000FAB2 File Offset: 0x0000DCB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600053A RID: 1338 RVA: 0x0000FABA File Offset: 0x0000DCBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600053B RID: 1339 RVA: 0x0000FAC4 File Offset: 0x0000DCC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(8);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Id);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600053C RID: 1340 RVA: 0x0000FB1C File Offset: 0x0000DD1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600053D RID: 1341 RVA: 0x0000FB74 File Offset: 0x0000DD74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AGLGJPAMJEP other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600053E RID: 1342 RVA: 0x0000FBC4 File Offset: 0x0000DDC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600053F RID: 1343 RVA: 0x0000FBD0 File Offset: 0x0000DDD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 16U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Id = input.ReadUInt32();
					}
				}
				else
				{
					this.AvatarType = (AvatarType)input.ReadEnum();
				}
			}
		}

		// Token: 0x040001DE RID: 478
		private static readonly MessageParser<AGLGJPAMJEP> _parser = new MessageParser<AGLGJPAMJEP>(() => new AGLGJPAMJEP());

		// Token: 0x040001DF RID: 479
		private UnknownFieldSet _unknownFields;

		// Token: 0x040001E0 RID: 480
		public const int AvatarTypeFieldNumber = 1;

		// Token: 0x040001E1 RID: 481
		private AvatarType avatarType_;

		// Token: 0x040001E2 RID: 482
		public const int IdFieldNumber = 2;

		// Token: 0x040001E3 RID: 483
		private uint id_;
	}
}
